/** @type {import('next').NextConfig} */
module.exports = {
  reactStrictMode: true,
  swcMinify: true,
  async redirects() {
    //重定向学习
    return [
      {
        source: '/about333',
        destination: '/', // Matched parameters can be used in the destination
        permanent: true,
      },
      {
        source: '/about444',
        destination: '/about', // Matched parameters can be used in the destination
        permanent: true,
      },
    ]
  },
}
// const nextConfig = {
//   reactStrictMode: true,
//   swcMinify: true,
//   [
//     {
//       source: '/about333',
//       destination: '/',
//       permanent: true,
//     }
//   ]
//     // source:'/about333',
//     // destination: '/',
//     // permanent: true
// }

// module.exports = nextConfig
